<template>
<div>
    <div>
      <span>爱好: </span>
      <input type="checkbox" value="wuhu" v-model="hobby">wuhu
      <input type="checkbox" value="喝酒" v-model="hobby">qifei
      <input type="checkbox" value="写代码" v-model="hobby">写代码
    </div>
        <div>
      <span>性别: </span>
      <input type="radio" value="男" name="sex" v-model="sex">男
      <input type="radio" value="女" name="sex" v-model="sex">女
    </div>
    </div>
</template>

<script>
export default {
  data (){
    return {
      hobby:['wuhu'],
      sex:'男',
    }
  }
}
</script>
